home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 12 / CU Amiga Magazine's Super CD-ROM 12 (1997)(EMAP Images)(GB)[!][issue 1997-07].iso / CUCD / Games / DestructivePoker / sources / sources.lha / dealpile.cpp < prev    next >
C/C++ Source or Header  |  1997-02-20  |  413b  |  32 lines

  1. /*
  2.         dealpile.cpp
  3.  
  4.         V1.00 - 151096  Kimmo Teräväinen
  5.         -----   ------  ----------------
  6.         Look dealpile.h
  7.  
  8. */
  9.  
  10. #include "dealpile.h"
  11.  
  12. void cDealPile::Shuffle()
  13. {
  14.   int p,q;
  15.   cIMGCard *card;
  16.   cards[0]->Hide();
  17.   for(int i=2*max ; i ; i--) {
  18.     p=rand()%n; q=rand()%n;
  19.     card=cards[p];
  20.     cards[p]=cards[q];
  21.     cards[q]=card;
  22.   }
  23.   cards[0]->Show();
  24. }
  25.  
  26. void cDealPile::Lift()
  27. {
  28. }
  29.  
  30.  
  31.  
  32.